Solve Linear Systems with Matrices: A Comprehensive Guide